cmake_minimum_required(VERSION 3.16)
project(easyloggingcpp)


set(CMAKE_CXX_STANDARD 14) 

set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -Wl,-rpath=.")


message("-------- easyloggingcpp -------")

# source directory
aux_source_directory(. SRC_LIST)

# build to library
add_library(${PROJECT_NAME} SHARED ${SRC_LIST} ${ELOG_SRC_LIST})

# -l
target_link_libraries(${PROJECT_NAME} pthread)

# set library output path
SET(LIBRARY_OUTPUT_PATH ${HOME}/lib)



